package com.blazer.b;

import java.util.Random;

public class arrayrandom {
    public static void main(String[] args) {
        Random random=new Random();
        int count=0;
        int[] arr=new int[10];
        for (int i=0;i<arr.length;i++){
            arr[i]=random.nextInt(100)+1;
            if(arr[i]%3==0&&arr[i]%5==0&&arr[i]%7!=0){
                count++;
            }
            System.out.println(arr[i]);
        }
        System.out.println(count);
    }
}
